package mc.support.crawler;

/**
 * Created with IntelliJ IDEA. <br/>
 * User: francis    <br/>
 * Date: 13-11-7    <br/>
 * Time: 16:45  <br/>
 */
public class QueryWrapper {

    private static final int DEFAULT_SIZE = 40;

    private static int pageSize;

    public static int getPageSize() {
        return pageSize;
    }

    public static void setPageSize(int pageSize) {
        QueryWrapper.pageSize = pageSize;
    }

    static {
        setPageSize( DEFAULT_SIZE );
    }

    private final Query query;
    private final int pageIndex;

    public QueryWrapper(Query query, int pageIndex) {
        this.query = query;
        this.pageIndex = pageIndex;
    }

    public Query getQuery() {
        return query;
    }

    public int getPageIndex() {
        return pageIndex;
    }

}
